package com.bestcem.xm.txtanls.service.dto.chart;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 时间范围
 *
 * @author jy.zhao
 * @version 1.0
 * @date 2021/6/22 10:46
 **/
@Getter
@Setter
@Data
public class TimeRangeDTO {

    @Valid
    @NotNull(message = "时间区间不能为空")
    private PeriodTimeDTO periodTime;

    @NotNull(message = "时间间隔不能为空")
    private Integer interval;

}
